<?php

$php_html = new php_html();

$str_html = '<tsags id="123123" attrib="blah 123" attrib2=blah attrib3=\'blah\'>asd</tsags><tag id="123" attrib="blah 123" attrib2=blah attrib3=\'blah\'>asd</tag><img id="123" /><img id="2123" />';

//$t = $php_html->strip_only($tag, "<tag><tsags>", true);
//var_dump($t);
$php_html->str_html($str_html);
$php_html->tags("<img>");
$str_html = $php_html->get_attributes();
var_dump($str_html);
// splite html
//$parts = $php_html->splite_html($t);
//var_dump($parts);
//$i=0;
//foreach ($parts as $p) {
//    var_dump($php_html->get_attribute('id', $p) . "\n");
//}
?> 